package com.yaj.enums;



import com.yaj.base.IBasicEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum BasicEnum implements IBasicEnum {

    SUCCEED(200, "操作成功"),
    SECURITY_ACCESSDENIED_FAIL(401, "权限不足!"),
    LOGIN_FAIL(401, "用户登录失败"),
    LOGIN_LOSE_EFFICACY(401, "登录状态失效，请重新登录"),
    DUPLICATE_FAIL(1001, "用户名重复"),
    USER_NOT_EXIST(1002, "用户不存在"),
    PASSWORD_ERROR(1003, "密码错误"),
    INSERT_RECORD_FAIL(1004,"请假记录插入失败");



    /**
     * 编码
     */
    public final int code;
    /**
     * 信息
     */
    public final String msg;

}
